<html>
   <head>
     <meta charset="UTF-8">
     <title>详细信息</title>
   </head>
   <body>
<?php
  require_once('system/dbConnect.php');
  require_once('system/MyFunc.php');
  connect();
  $wn_id = $_GET['id'];
  $sql = "select * from flower where wn_id={$wn_id}"; 
  $result = fetch_array($sql);    
 ?>
 <table align="center" width="80%" border=1>  
 <center><h3>鲜花详情列表</h3></center> 
 <tr>
   <th>鲜花标题</th>   
   <th>鲜花图片文件名</th>
   <th>鲜花产地</th>
   <th>鲜花简介</th>
 </tr>
<?php
  foreach($result as $row) 
  {
   echo '<tr>';
   echo '<td>'.$row['wn_title'].'</td>';
   echo '<td>'.$row['wn_pic'].'</td>';
   echo '<td>'.$row['wn_place'].'</td>';
   echo '<td>'.$row['wn_intro'].'</td>';
   echo '</tr>';  
  echo '</table>';  
}
  $totalrows = count($result);
  echo "<table align='center'><tr><td>共有{$totalrows}种鲜花</td></tr></table>";  
 ?>
</body>
</html>




